package kz.pompei.var.instruction.concretes;

import kz.pompei.var.atom.Atom;
import kz.pompei.var.error.ErrorReciever;
import kz.pompei.var.instruction.BlockInstruction;
import kz.pompei.var.instruction.Instructionizer;

public class InstructionizerOne implements Instructionizer {
  
  @SuppressWarnings("unused")
  private ErrorReciever errorReciever;
  
  @Override
  public void setErrorReciever(ErrorReciever errorReciever) {
    this.errorReciever = errorReciever;
  }
  
  @Override
  public void start() {
    System.out.println("Instr: START");
  }
  
  @Override
  public void recieve(Atom atom) {
    System.out.println("Instr: recieve: " + atom);
  }
  
  @Override
  public BlockInstruction finishAndGetInstruction() {
    System.out.println("Instr: FINISH");
    return null;
  }
  
}
